package org.jeecg.modules.controller;


import org.jeecg.modules.entity.Stock;
import org.jeecg.modules.service.IStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.LongSummaryStatistics;

/**
 * <p>
 * 股票表 前端控制器
 * </p>
 *
 * @author zhanggm
 * @since 2023-09-15
 */
@RestController
@RequestMapping("/stock")
public class StockController {


    @Autowired
    private IStockService stockService;


    @GetMapping("list")
    public Object list() {
        List<Stock> list = stockService.list();
        return list;
    }

}
